namespace Example
{
    using System.Net;
    using SimpleWebServices.Net;
    using Xunit;

    public sealed class FaviconFacts
    {
        [Fact]
        public void Get_IconRepresentation()
        {
            string location = "http://example.simplewebservices.org/favicon.ico";

            Assert.True(HttpExpectations.New(location)
                .AcceptAnyContent()
                .AcceptAnyLanguage()
                .Cookieless()
                .Get()
                .Is(HttpStatusCode.OK)
                .IgnoreCacheControl()
                .IgnoreContentLanguage()
                .IgnoreContentMD5()
                .ResponseIsImageIcon()
                .HasNoCookies()
                .Result);
        }
    }
}